<link rel="stylesheet" href="../static/css/style.css">
<link rel="stylesheet" href="../static/plugins/layui/css/layui.css">
<link rel="stylesheet" href="../static/css/styleoneadd.css">
<link rel="stylesheet" href="../static/plugins/bootstrap-3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/plugins/bootstrap-3.3.7/css/bootstrap-theme.min.css">

<!-- 内容主体区域 -->
<div class="layui-fluid-pad">
    <div class="layui-col-md12">
        <div class="layui-card">
            <div class="layui-card-header">供应商管理</div>
            <div class="layui-card-body">
                <div class="layui-row layui-pad15">
                    <form class="layui-form" action="">
                        <div class="layui-col-md12 layui-col-lh">
                            <div class="layui-row layui-col-space15">
                                <div class="layui-col-md2 layui-order-width3">
                                    <input type="text" name="title"  placeholder="供应商名称" class="form-control"/>
                                </div>
                                <div class="layui-col-md2 layui-order-width3">
                                    <input type="text" name="title"  placeholder="联系人" class="form-control"/>
                                </div>
                                <div class="layui-col-md2 layui-order-width3">
                                    <input type="text" name="title"  placeholder="联系电话" class="form-control" maxlength="11"/>
                                </div>
                                <div class="layui-col-md2">
                                    <input type="text" name="title"  placeholder="邮箱" class="form-control"/>
                                </div>
                                <div class="layui-col-md3">
                                    <div class="layui-row">
                                        <div class="layui-col-md12 layui-order-flexs">
                                            <input type="text" class="form-control layui-gd-widths" placeholder="时间" id="test1">
                                            &nbsp;&nbsp;至&nbsp;&nbsp;
                                            <input type="text" class="form-control layui-gd-widths" placeholder="时间" id="test2">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-col-md1">
                                    <button class="layui-btn layui-t-h">筛选</button>
                                </div>
                                <div class="layui-col-md1 layui-text-right" style="width: 13%">
                                    <a href="javascript:;" class="layui-btn layui-t-h addGys">
                                        <i class="layui-icon">&#xe770;</i>
                                        添加供应商
                                    </a>
                                </div>
                            </div>
                        </div>
                    </form>

                    <!--表格-->
                    <div class="layui-row">
                        <div class="layui-col-md12">
                            <table class="layui-data-zs" border="1">
                                <tr class="layui-t-h layui-hg-b order-table--tr-bg">
                                    <th>序号</th>
                                    <th>供应商名称</th>
                                    <th>联系人</th>
                                    <th>联系电话</th>
                                    <th>邮箱</th>
                                    <th>添加时间</th>
                                    <th>操作</th>
                                </tr>
                                <!--<tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>入职体检（A套餐）</td>
                                    <td>李四</td>
                                    <td>15198887741</td>
                                    <td>905790440@qq.com</td>
                                    <td>2018-04-11</td>
                                    <td>
                                        <a href="javascript:;" class="layui-btn-ty layui-zdy-bj ">编辑</a>
                                        <a href="javascript:;" class="layui-btn-ty  layui-dels">删除</a>
                                    </td>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>入职体检（A套餐）</td>
                                    <td>李四</td>
                                    <td>15198887741</td>
                                    <td>905790440@qq.com</td>
                                    <td>2018-04-11</td>
                                    <td>
                                        <a href="javascript:;" class="layui-btn-ty layui-zdy-bj ">编辑</a>
                                        <a href="javascript:;" class="layui-btn-ty  layui-dels">删除</a>
                                    </td>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>入职体检（A套餐）</td>
                                    <td>李四</td>
                                    <td>15198887741</td>
                                    <td>905790440@qq.com</td>
                                    <td>2018-04-11</td>
                                    <td>
                                        <a href="javascript:;" class="layui-btn-ty layui-zdy-bj ">编辑</a>
                                        <a href="javascript:;" class="layui-btn-ty  layui-dels">删除</a>
                                    </td>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>入职体检（A套餐）</td>
                                    <td>李四</td>
                                    <td>15198887741</td>
                                    <td>905790440@qq.com</td>
                                    <td>2018-04-11</td>
                                    <td>
                                        <a href="javascript:;" class="layui-btn-ty layui-zdy-bj ">编辑</a>
                                        <a href="javascript:;" class="layui-btn-ty  layui-dels">删除</a>
                                    </td>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>入职体检（A套餐）</td>
                                    <td>李四</td>
                                    <td>15198887741</td>
                                    <td>905790440@qq.com</td>
                                    <td>2018-04-11</td>
                                    <td>
                                        <a href="javascript:;"class="layui-btn-ty layui-zdy-bj ">编辑</a>
                                        <a href="javascript:;" class="layui-btn-ty  layui-dels">删除</a>
                                    </td>
                                </tr>-->
                            </table>
                            <div style="margin: 20px 0; text-align: center;">无符合条件数据。</div>
                        </div>
                        <!--分页-->
                        <div class="layui-col-md12 layui-page-top">
                            <div id="demo7"></div>
                        </div>
                        <!--分页end-->
                    </div>
                    <!--表格end-->
                </div>

            </div>
        </div>
    </div>
</div>


<script src="../static/js/jquery.min.js"></script>
<script src="../static/plugins/bootstrap-3.3.7/js/bootstrap.min.js"></script>
<script src="../static/plugins/layui/layui.js"></script>
<script>
    //Demo
    layui.use(['jquery','form','laypage','laydate','table','layer'], function(){
        var form = layui.form;
        var $ = layui.jquery;
        var laydate = layui.laydate;
        var laypage = layui.laypage;
        var layer = layui.layer;
        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
        // 日期
        laydate.render({
            elem: '#test1' //指定元素
            ,theme: '#34C0E3'
        });
        laydate.render({
            elem: '#test2' //指定元素
            ,theme: '#34C0E3'
        });
        //分页
        /*laypage.render({
            elem: 'demo7'
            ,count: 0
            ,theme: '#34C0E3'
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj){
                // console.log(obj)
                layer.msg("此功能正在紧急研发中");
            }
        });*/
        //添加供应商
        $(function () {
            $('.addGys').on('click',function () {
                var strU = 'addSupplier.html';
                layer.open({
                    type: 2,
                    title:'添加供应商',
                    area: ['480px', '400'],
                    shadeClose: true, //开启遮罩关闭
                    content: strU
                });
            });
        });

    });
</script>




